<html xmlns:concordion="http://www.concordion.org/2007/concordion">
    <head>
        <link href="../../../concordion.css" rel="stylesheet" type="text/css" />
    </head>
    <body>

        <h1>Connection Pool - Check out time</h1>
    
        <p>
            The pool will track the total time that all connections were 
            checked out from the pool.
        </p>
        
        <div class="example">
        
            <p>
                A connection is checked out from a pool the following times:
            </p>
            
            <table concordion:execute="checkoutConnSleepAndReturn(#millis)">
               <tr><th concordion:set="#millis">Checkout time (ms)</th></tr>
               <tr><td>10</td></tr>
               <tr><td>15</td></tr>
               <tr><td>2</td></tr>
               <tr><td>20</td></tr>
            </table>
            
            <p>
                The pool will report the total checkout time as <span concordion:assertEquals="getCheckoutTimeTotal(#TEXT)">47</span> milliseconds with
                an average checkout time of <span concordion:assertEquals="getCheckoutTimeAverage(#TEXT)">11.75</span> milliseconds.
            </p>
            
        </div>

    </body>
</html>